package com.xxl.job.executor.utils;

import java.util.*;

public class SetUtil {
    public static List<String> getLikeByStr(Set<String> set,String likeStr){
        List<String> list = new ArrayList<>();
        Iterator<String> iset = set.iterator();
        while(iset.hasNext()){
            String strNext = iset.next();
            if(strNext.indexOf(likeStr)>-1){
                list.add(strNext);
            }
        }
        return list;
    }
}
